Skip to content

test(wtr): remove usage of global TestUtils from hydration tests @W-19098266#5489

Merged
wjhsf merged 46 commits intomasterfrom
wjh/wtr-test-utils-hydration
Sep 16, 2025
Merged

test(wtr): remove usage of global TestUtils from hydration tests @W-19098266#5489
wjhsf merged 46 commits intomasterfrom
wjh/wtr-test-utils-hydration

Conversation

@wjhsf
Copy link
Contributor

@wjhsf wjhsf commented Sep 12, 2025

Details

To make all dependencies more clear/explicit, this PR removes the TestUtils global and replaces it with explicit imports.

Because the bundling happening with the hydration tests, the test files cannot import from lwc without things breaking, so the util that needed it got moved to a separate file.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.
  • 💔 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.
  • 🔬 Yes, it does include an observable change.

GUS work item

wjhsf and others added 30 commits September 2, 2025 18:01
There's no setup/teardown needed, it's a single test, and WTR provides per-file encapsulation
working toward just importing and executing things, but not quite there yet
two env vars for the same goal is unnecessary
I think the last one was a concurrency related timeout,
which was previously addressed.
helper files shouldn't have side effects; all setup should be in the setup file
all tests are run in isolation
@wjhsf wjhsf requested a review from a team as a code owner September 12, 2025 18:48
Base automatically changed from wjh/wtr-clean-hydration to master September 16, 2025 19:10
@wjhsf wjhsf enabled auto-merge (squash) September 16, 2025 19:14
@wjhsf
Copy link
Contributor Author

wjhsf commented Sep 16, 2025

/nucleus ignore --reason meh

@wjhsf wjhsf merged commit 3a03a76 into master Sep 16, 2025
7 checks passed
@wjhsf wjhsf deleted the wjh/wtr-test-utils-hydration branch September 16, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants